package com.hui.web;

import com.hui.api.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yhq
 * @since 17-3-9.
 */
@RestController
@SuppressWarnings("unused")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("/demo")
    public String getDemoService() {
        return demoService.getResult(1, 10);
    }
}
